//package net.canway.devops.keywordmanager.dao
//
//import net.canway.devops.keywordmanager.pojo.dao.OperationLogDaoInfo
//import net.canway.devops.model.keywordmanager.Tables
//import net.canway.devops.model.keywordmanager.tables.TOperationLog
//import net.canway.devops.model.keywordmanager.tables.records.TOperationLogRecord
//import org.jooq.DSLContext
//import org.springframework.stereotype.Repository
//
//@Repository
//class OperationLogDao(private val dslContext: DSLContext) :
//    DefaultDao<TOperationLog, TOperationLogRecord, OperationLogDaoInfo>(
//        dslContext,
//        Tables.T_OPERATION_LOG
//    ) {
//    fun findByModuleType(moduleType: String, tenantId: String): List<OperationLogDaoInfo> {
//        return dslContext.selectFrom(Tables.T_OPERATION_LOG)
//            .where(Tables.T_OPERATION_LOG.TENANT_ID.eq(tenantId)) // 添加 tenantId 过滤条件
//            .and(Tables.T_OPERATION_LOG.MODULE_TYPE.eq(moduleType))
//            .orderBy(Tables.T_OPERATION_LOG.OPERATION_TIME.desc())
//            .fetch()
//            .map { recordToEntity(it) }
//    }
//}
